package com.vincent.template.repository;

import com.vincent.template.commons.base.BaseJpaRepository;
import com.vincent.template.domain.SysBindAuthGroupAuthPo;

import java.util.Collection;
import java.util.List;

/**
 * @author Vincent Wang
 * @date 2020/12/30 11:13
 */
public interface SysBindAuthGroupAuthRepository extends BaseJpaRepository<SysBindAuthGroupAuthPo, Long> {
    List<SysBindAuthGroupAuthPo> findByAuthGroupIdIn(Collection<Long> authGroupIds);
    List<SysBindAuthGroupAuthPo> findByAuthGroupId(Long authGroupId);
    List<SysBindAuthGroupAuthPo> findByAuthGroupIdAndAuthIdIn(Long authGroupId, Collection<Long> authIds);
    List<SysBindAuthGroupAuthPo> findByAuthId(Long authId);
}
